package com.ruoyi.base.mapper;

import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.base.domain.MPerformance;
import com.ruoyi.base.domain.MSalarydetails;
import com.ruoyi.base.vo.IdAndYear;
import com.ruoyi.base.vo.IncomeTaxVo;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.hpsf.Decimal;

/**
 * 薪资明细Mapper接口
 * 
 * @author ruoyi
 * @date 2024-08-11
 */
public interface MSalarydetailsMapper 
{
    /**
     * 查询薪资明细
     * 
     * @param id 薪资明细主键
     * @return 薪资明细
     */
    public MSalarydetails selectMSalarydetailsById(Long id);

    /**
     * 查询薪资明细列表
     * 
     * @param mSalarydetails 薪资明细
     * @return 薪资明细集合
     */
    public List<MSalarydetails> selectMSalarydetailsList(MSalarydetails mSalarydetails);

    /**
     * 新增薪资明细
     * 
     * @param mSalarydetails 薪资明细
     * @return 结果
     */
    public int insertMSalarydetails(MSalarydetails mSalarydetails);

    /**
     * 修改薪资明细
     * 
     * @param mSalarydetails 薪资明细
     * @return 结果
     */
    public int updateMSalarydetails(MSalarydetails mSalarydetails);

    /**
     * 删除薪资明细
     * 
     * @param id 薪资明细主键
     * @return 结果
     */
    public int deleteMSalarydetailsById(Long id);

    /**
     * 批量删除薪资明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMSalarydetailsByIds(Long[] ids);


    MSalarydetails selectMSalarydetailsByName(IdAndYear idAndYear);

    Integer selectbusinessVolume(@Param("sId") Long sId, @Param("month") String month);

    BigDecimal selectperformanceReward(@Param("businessVolume") Integer businessVolume);

    Integer selectPunchCard(@Param("sId") Long sId,@Param("month") String month);

    Boolean selectLeave(@Param("sId") Long sId,@Param("month") String month);

    BigDecimal selectabsent(@Param("absence") Integer i);

    List<BigDecimal> selectPerformancelist(@Param("sId") Long aLong, @Param("month") String yearmonth);

    Integer selectLeaveDays(@Param("sId") Long aLong, @Param("month") String yearmonth);

    IncomeTaxVo selectMTaxList(BigDecimal salarypayable);
}
